exec_engine: None,
release: true,
mode: ops::CompileMode::Bench,
- filter: if benches.len() == 0 {
+ filter: if benches.is_empty() {
ops::CompileFilter::Everything
} else {
ops::CompileFilter::Only {
// For the commands `cargo` and `cargo help`, re-execute ourselves as
// `cargo -h` so we can go through the normal process of printing the
// help message.
- "" | "help" if flags.arg_args.len() == 0 => {
+ "" | "help" if flags.arg_args.is_empty() => {
config.shell().set_verbose(true);
let args = &["cargo".to_string(), "-h".to_string()];
let r = cargo::call_main_without_stdin(execute, config, USAGE, args,
exec_engine: None,
release: options.flag_release,
mode: ops::CompileMode::Build,
- filter: if examples.len() == 0 && bins.len() == 0 {
+ filter: if examples.is_empty() && bins.is_empty() {
ops::CompileFilter::Everything
} else {
ops::CompileFilter::Only {
exec_engine: None,
release: false,
mode: ops::CompileMode::Test,
- filter: if tests.len() == 0 && bins.len() == 0 {
+ filter: if tests.is_empty() && bins.is_empty() {
ops::CompileFilter::Everything
} else {
ops::CompileFilter::Only {